package gewu.suleju.sevice.imp;

import gewu.suleju.dao.iml.IBrokerLandlordDao;
import gewu.suleju.model.pojo.User;
import gewu.suleju.sevice.IBrokerLandlordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class BrokerLandlordServiceImp implements IBrokerLandlordService {
    @Autowired
    IBrokerLandlordDao iBrokerLandlordDao;
    //正在服务的房东
    @Override
    public List<User> findUserLandlordIng(Integer brokerid) {
        return iBrokerLandlordDao.findUserLandlordIng(brokerid);
    }
    //结束服务的房东
    @Override
    public List<User> findUserLandlordEnd(Integer brokerid) {
        return iBrokerLandlordDao.findUserLandlordEnd(brokerid);
    }
}
